# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-grandalf
_pkgname=grandalf
pkgver=0.8
pkgrel=4
pkgdesc='Graph and drawing algorithms framework.'
arch=('any')
url='https://pypi.org/project/grandalf/#files'
license=('GPL2')
depends=('python' 'python-future' 'python-pyparsing')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://github.com/bdcht/grandalf/archive/v$pkgver.tar.gz")
sha512sums=('3c025307258ab37e6e37161125c3c63ab1325306c9b364b02144917f23243f89af78669620bf60100b1a5585dbaaf970ea576f23dfdb07e32f70a2efd72eb606')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

